// package com.jungle.sp.daily.service;
//
// import com.google.firebase.FirebaseApp;
// import com.google.firebase.FirebaseOptions;
// import com.google.firebase.auth.FirebaseAuth;
// import com.google.firebase.auth.PhoneAuthCredential;
// import com.google.firebase.auth.PhoneAuthProvider;
// import com.google.firebase.auth.PhoneAuthOptions;
// import com.google.firebase.auth.PhoneAuthProvider.OnVerificationStateChangedCallbacks;
// import com.google.firebase.database.FirebaseDatabase;
//
// import java.io.FileInputStream;
// import java.io.IOException;
//
// public class FirebaseService {
//
//     public static void initializeFirebase() throws IOException {
//         // 使用 Firebase 服务账号密钥初始化 Firebase
//         FileInputStream serviceAccount = new FileInputStream("path/to/your/serviceAccountKey.json");
//
//         FirebaseOptions options = new FirebaseOptions.Builder()
//             .setCredential(FirebaseCredentials.fromCertificate(serviceAccount))
//             .setDatabaseUrl("https://your-database-name.firebaseio.com") // 根据需要修改
//             .build();
//
//         FirebaseApp.initializeApp(options);
//     }
// }
